cc.Class({
    extends: cc.Component,
    properties: {
        spriteFrame: {
            default: [],
            type: cc.SpriteFrame
        },
        bgImage: cc.Sprite,
        dayImage: cc.Sprite,
        label: cc.Label,
        goldLabel: cc.Label,
        goldImage: cc.Node,
        lostImage: cc.Node
    },
    init: function (t) {
        this.id = t.id, this.gold = 0, console.log("签到：第 " + t.id + " 天"), 7 == t.id ? (this.goldImage.active = !1,
            this.goldLabel.string = "70星星", this.gold = 70, this.bgImage.spriteFrame = this.spriteFrame[0],
            console.log("?")) : t.id >= 1 && t.id <= 6 && (this.dayImage.spriteFrame = this.spriteFrame[t.id],
            this.goldLabel.string = 10 * t.id + "星星", this.gold = 10 * t.id);
    },
    now: function () {},
    lost: function () {
        this.dayImage.spriteFrame = this.spriteFrame[7], this.lostImage.active = !0;
    }
})